
<link rel="stylesheet" type="text/css"
      href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-datetimepicker.min.css" />
<script  type="text/javascript"
         src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap-datetimepicker.min.js"/>

<script type="text/javascript">
    $(document).ready(function() {
        $("#selectAll").click(function() {
            if ($(this).attr("checked") == "checked") {
                $(":checkbox").attr("checked", true);
            } else {
                $(":checkbox").attr("checked", false);
            }
        });

    });
</script> 

<script type="text/javascript">
    $(function() {
        $('.tree li:has(ul)').addClass('parent_li').find(' > span').attr('title', 'Collapse this branch');
        $('.tree li.parent_li > span').on('click', function(e) {
            var children = $(this).parent('li.parent_li').find(' > ul > li');
            if (children.is(":visible")) {
                children.hide('fast');
                $(this).attr('title', 'Expand this branch').find(' > i').addClass('icon-plus-sign').removeClass('icon-minus-sign');
            } else {
                children.show('fast');
                $(this).attr('title', 'Collapse this branch').find(' > i').addClass('icon-minus-sign').removeClass('icon-plus-sign');
            }
            e.stopPropagation();
        });
    });</script>
<script type="text/javascript">
    $(function() {
        $("#Event_Shop_CX").click(function() {
            document.getElementById("Event_Shop_CX_View").style.display = '';
            document.getElementById("Event_Clothes_CX_View").style.display = 'none';
        });
        $("#Event_Clothes_CX").click(function() {
            document.getElementById("Event_Shop_CX_View").style.display = 'none';
            document.getElementById("Event_Clothes_CX_View").style.display = '';
        });
    });</script>
<legend>
    <h4>
        <?php
        echo $control->getAjaxLink(array('name' => '功能列表', 'id' => 'showEventList'), array(
            'cooker' => 'BAEvent@showEventList'
        ));
        ?>\
        <?php
        echo $control->getAjaxLink(array('name' => '积分类型', 'id' => 'showMemberPointTypeList'), array(
            'cooker' => 'BAMemberPoint@showMemberPointTypeList'
        ));
        ?>\
        <?php echo '账号列表'; ?>

    </h4>
</legend>
<div class="tabbable tabs-right" style="margin-top: 15px;"> <!-- Only required for left/right tabs -->
    <ul class="nav nav-tabs" style="margin-bottom: 15px">
        <li class="active"><a href="#tab1" data-toggle="tab"><?php echo '账号列表'; ?></a></li>    
        <li class=""><a href="#tab2" data-toggle="tab"><?php echo '客户搜索'; ?></a></li>
        <li class=""><a href="#tab3" data-toggle="tab"><?php echo '客户分析'; ?></a></li>
    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="tab1" style="min-height: 150px"> 
            <?php
            $control2 = new BUIEventControl('showMemberPointAccountList');
            $control2->addRenderView('mpList', 'memberPointAccount_list_1', array(
                'memberPointAccountList' => $memberPointAccountList,
                'control' => $control));
            ?>
            <?php $control2->render(); ?>
        </div>
        <div class="tab-pane" id="tab2" style="min-height: 150px"> 
            <?php $control->renderView('memberPointAccount_search', array('control' => $control2)); ?>
        </div>
        <div class="tab-pane" id='tab3' style="min-height: 150px">
            客户分析
            <?php // $control->renderView('memberPointAccount_analyse', array('control' => $control2)); ?>
        </div>
    </div>
</div>

